package cn.hongwei.eduservice.service;

import cn.hongwei.eduservice.entity.Course;
import cn.hongwei.eduservice.entity.form.CourseInfoForm;
import cn.hongwei.eduservice.entity.query.CourseApiQuery;
import cn.hongwei.eduservice.entity.vo.CourseDetailsVo;
import cn.hongwei.eduservice.entity.vo.CourseInfoVo;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

public interface CourseService extends IService<Course> {

    String saveCourseInfo(CourseInfoForm courseInfo);

    Course getById(String id);

    Page<CourseInfoVo> getCourseInfoVos(Integer pageNum, Integer pageSize);

    CourseInfoVo getPublishCourse(String courseId);

    List<Course> listCourses(CourseApiQuery courseApiQuery);

    CourseDetailsVo getCourseDetails(String courseId);
}
